
import {getCategory} from '@/api/goods.js'
import {ref} from 'vue'

export default function(index=0){
	let cate = ref([])
	let active = ref(index)
	getCategory().then(res=>{
		
		cate.value = res.category
	})
	
	return {
		cate,
		active
	}
	
	
}